package oop1;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class VisitorTest {
    public static void main(String[] args) {
        int i=100;

        Scanner in=new Scanner(System.in);

        while (true) {
            Visitor a=new Visitor();
            System.out.print("请输入姓名：");
            a.name = in.next();
            if (a.name.equals("n")) break;
            System.out.print("请输入年龄：");
            a.age = in.nextInt();
            a.calcMoney();
        }

    }
}
